import { unir } from './unr'

// 分页
interface Page {
  page: number
  limit: number
}

// 通用响应数据
interface Resp<T> {
  code: number
  data: T
  msg: string
}

// 启动上报
export async function launchUp() {
  return unir.get<Resp<any>>(`/pub/comm/launch`)
}

// 获取协议富文本
export function getAgreementRq(type: string) {
  return unir.get<Resp<any>>(`/app/public/agreement/getAgreementByType?type=${type}`)
}